package net.sky.oa.service.talkpark.impl;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import net.sky.oa.dao.talkpark.TalPhotoDao;
import net.sky.oa.model.TalPhoto;
import net.sky.oa.service.talkpark.TalPhotoService;
import com.htsoft.core.service.impl.BaseServiceImpl;

@Service
@Transactional
public class TalPhotoServiceImpl extends BaseServiceImpl<TalPhoto> implements
		TalPhotoService {
	private TalPhotoDao talphotodao;
	
	@Resource
	public void setDao(TalPhotoDao talphotodao){
		super.setDao(talphotodao);
		this.talphotodao=talphotodao;
	} 
	
	@Transactional(readOnly=false)
	public List<TalPhoto> findAllTalPhoto() {
		
		return this.talphotodao.findAllTalPhoto();
	}

	public List<TalPhoto> findByHql(String paramString) {
	
		return null;
	}
	@Transactional(readOnly=false)
	public Map findTalPhotoByAlbumId(Long albumId, int currentPage, int lineSize)
			throws Exception {
		return this.talphotodao.findTalPhotoByAlbumId(albumId, currentPage, lineSize);
	}


}
